package dk.miljoeportalen.dkpunkt.rest;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Path("demofixture")
@Component
public class DemoFixtureResource {

	private EntityManager em;
	
	@GET
	@Produces(MediaType.TEXT_PLAIN)
	@Transactional
	public String createFixture() {
		return null;
	}

	@PersistenceContext
	@Autowired
	public void setEntityManager(EntityManager em) {
		this.em = em;
	}
	
}
